import { http } from "@/utils/http";

export const GetConversion = (
	data: Eps.TempleService.GetConversion_Params = {}
): Promise<Eps.TempleService.GetConversion> => {
	return http.post(`/TempleService/GetConversion`, Object.values(data));
};

export const SubmitConversion = (
	data: Eps.TempleService.SubmitConversion_Params = {}
): Promise<Eps.TempleService.SubmitConversion> => {
	return http.post(`/TempleService/SubmitConversion`, Object.values(data));
};

export const GetDayEvents = (
	data: Eps.TempleService.GetDayEvents_Params = {}
): Promise<Eps.TempleService.GetDayEvents> => {
	return http.post(`/TempleService/GetDayEvents`, Object.values(data));
};

export const GetTaoistAuth = (
	data: Eps.TempleService.GetTaoistAuth_Params = {}
): Promise<Eps.TempleService.GetTaoistAuth> => {
	return http.post(`/TempleService/GetTaoistAuth`, Object.values(data));
};

export const SearchTaoistAuth = (
	data: Eps.TempleService.SearchTaoistAuth_Params = {}
): Promise<Eps.TempleService.SearchTaoistAuth> => {
	return http.post(`/TempleService/SearchTaoistAuth`, Object.values(data));
};

export const SetTaoistAuthPay = (
	data: Eps.TempleService.SetTaoistAuthPay_Params = {}
): Promise<Eps.TempleService.SetTaoistAuthPay> => {
	return http.post(`/TempleService/SetTaoistAuthPay`, Object.values(data));
};

export const SubmitTaoistAuth = (
	data: Eps.TempleService.SubmitTaoistAuth_Params = {}
): Promise<Eps.TempleService.SubmitTaoistAuth> => {
	return http.post(`/TempleService/SubmitTaoistAuth`, Object.values(data));
};
